package com.ruoyi.project.mahjong.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * 积分赠送对象 t_integral
 *
 * @author ruoyi
 * @date 2023-09-28
 */
@ApiModel("积分赠送实体类字段描述")
@Data
public class TIntegral extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 赠送积分 */
    @Excel(name = "赠送积分")
    @NotNull(message="赠送积分不能为空")
    @ApiModelProperty("赠送积分")
    private Long integral;
//    可用状态 0 开启 1关闭
    @ApiModelProperty("可用状态 0 开启 1关闭")
    private String status;
//    @NotNull(message="店铺id")
   @ApiModelProperty("店铺id")
    private Long shopId;

    /** 每充值达到此额度赠送积分 */
    @Excel(name = "每充值达到此额度赠送积分")
    @ApiModelProperty("每充值达到此额度赠送积分")
    private String rechargeMoney;

    /** 每消费到此额度赠送积分 */
    @Excel(name = "每消费到此额度赠送积分")
    @ApiModelProperty("每消费到此额度赠送积分")
    private String costMoney;


    private String type;

    /** 赠送名称 */
    @Excel(name = "赠送名称")
    @ApiModelProperty("赠送名称")
    private String giveName;

    /** $column.columnComment */
    private Long id;

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public void setIntegral(Long integral)
    {
        this.integral = integral;
    }

    public Long getIntegral()
    {
        return integral;
    }
    public void setRechargeMoney(String rechargeMoney)
    {
        this.rechargeMoney = rechargeMoney;
    }

    public String getRechargeMoney()
    {
        return rechargeMoney;
    }
    public void setCostMoney(String costMoney)
    {
        this.costMoney = costMoney;
    }

    public String getCostMoney()
    {
        return costMoney;
    }
    public void setGiveName(String giveName)
    {
        this.giveName = giveName;
    }

    public String getGiveName()
    {
        return giveName;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .append("integral", getIntegral())
            .append("rechargeMoney", getRechargeMoney())
            .append("costMoney", getCostMoney())
            .append("giveName", getGiveName())
            .append("status", getStatus())
            .append("id", getId())
            .toString();
    }
}
